<template>
  <router-view></router-view>
  <!-- <el-button type="warning" @click="handleLogin">登录</el-button>
    <el-button type="danger" @click="getList">测试用户请求</el-button> -->

</template>

<script setup>
// 模拟
// import request from '@/util/request'
// import store from '@/store'

// const handleLogin = async () => {

//   let result = await request.get('/user/login')

//   let data = result

//   if (data.code == 20000) {
//     console.log("token:", data.data.token)

//     store.commit("SET_TOKEN", data.data.token)
//   } else {
//     console.log("登录出错")
//   }
// }


// const getList = async () => {

// let result = await request.get('/user/list')

// let data = result

// if (data.code == 20000) {
//   console.log("info:", data.data.info)
//   // store.commit("SET_TOKEN", token)

// } else {
//   console.log("登录出错")
// }
// }


</script>
<style>
html,
body,
#app {
  height: 100%;
}

.app-container {
  padding: 20px
}
</style>
